package cn.com.thinker.core.module.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by crazyHC on 2017/5/31.
 */
@EqualsAndHashCode
@Data @NoArgsConstructor @AllArgsConstructor
@Entity @Table(name = "sys_dic")
@DynamicInsert @DynamicUpdate
public class Dic {

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    private String id;

    private String dicKey;

    private String dicValue ;

    private String userId;

    private Date createTime;

    public Dic(String dicKey,String dicValue){
        this.dicKey = dicKey;
        this.dicValue = dicValue;
    }

}
